import { UserType } from "@/app/api/api";

export function userTypeReadable(t?:UserType){
    if(t===UserType.Admin)
        return '管理'
    if(t===UserType.Member)
        return '成员'
    return '停用'
}
export function userTypeColor(t?:UserType){
    if(t===UserType.Admin)
        return 'darkblue'
    if(t===UserType.Member)
        return 'darkgreen'
    return 'gray'
}